<?php

/**
 * Created by PhpStorm.
 * User: geyouwen
 * Date: 16/9/6
 * Time: 下午11:16
 */
namespace Home\Model;

use Think\Model;

class ArticleModel extends Model
{

    public function getList($where, $limit, $fields ='id,title,addtime,thumb', $order='addtime desc')
    {
        return $this->where($where)->order($order)->field($fields)->limit($limit)->select();
    }


}